import Vue from "vue";
import Vuex from "vuex";

import count from "./modules/count";
import movie from "./modules/movie";

// 引入持久化储存的差价
import createPersistedState from "vuex-persistedstate";

Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    count,
    movie,
  },
  plugins: [createPersistedState()],
});
